menubutton: Add a way to always show arrow with image buttons
authorAlexander Mikhaylenko <alexm@gnome.org>
Mon, 21 Jun 2021 10:13:16 +0000 (15:13 +0500)
committerAlexander Mikhaylenko <alexm@gnome.org>
Thu, 24 Jun 2021 18:12:26 +0000 (23:12 +0500)
commitac3b2468589f22e78b72b664622df04697238288
tree22ef8fcf0f4090d4d009528ed85ab61998c5f6f9
parent51a754547ee6745b5fb1d211db6085f93e6af514
menubutton: Add a way to always show arrow with image buttons

Make sure the button still has the .image-button style class with an icon,
also add it to the initial state with only an arrow. Add a new
.arrow-button style class for the icon+arrow state so it's possible to
style it.

Remove spacing from the label+arrow variant to match, re-add it from the
stylesheet for both.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3501
gtk/gtkmenubutton.c
gtk/gtkmenubutton.h
gtk/theme/Default/_common.scss